package Simpleblog::Controller::Myblog;

use strict;
use warnings;
use base 'Catalyst::Controller';

=head1 NAME

Simpleblog::Controller::Myblog - Catalyst Controller

=head1 DESCRIPTION

Catalyst Controller.

=head1 METHODS

=cut

=head2 auto

must login before enter here.

=cut

sub auto : Private{
    my ($self, $c) = @_;
    unless ($c->user_exists) {
        $c->res->redirect("/logon/login");
        return;
    }


}


=head2 index 

=cut

sub index : Private {
    my ( $self, $c ) = @_;

    $c->forward('/blog/do_display',[$c->user->obj]);
    
}


=head1 AUTHOR

chylli,,,

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

1;
